package com.manlitech.copyrequest;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@Slf4j
public class CopyrequestApplication {

    public static void main(String[] args) {
        SpringApplication.run(CopyrequestApplication.class, args);
    }

    @RequestMapping("/hello")
    public String hello(){
        log.info("hello I'am hello !");
        return "hello I'am hello !";
    }

    @RequestMapping("/copyhello")
    public String copyHello(){
        log.info("hello I'am copyhello !");
        return "hello I'am copyhello !";
    }


}
